<template>
<h1>布局</h1>
  <!-- 1.图片2024.png占12列,在页面居中位置 -->
  <el-row :gutter="10">
     <el-col :span="12" :offset="6" ><img src="2024.png" width="400px" alt=""></el-col>
  </el-row>
  <br>
  <!-- 2.有三张图片2024.png,他们的宽度比为1:2:3 -->
  <el-row :gutter="10">
    <el-col :span="4"  ><img src="2024.png" width="100%" ></el-col>
    <el-col :span="8"  ><img src="2024.png" width="100%"></el-col>
    <el-col :span="12" ><img src="2024.png" width="100%"></el-col>
  </el-row>
  <br>
  <!-- 3.有8列,均分一行,每列显示的内容为1 2 3...8 -->
  <el-row :gutter="10">
    <el-col :span="3" v-for="item in 8" style="border: 1px solid red">{{item}}</el-col>
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
<!--    <el-col :span="3"  ><img src="2024.png" width="100%"></el-col>-->
  </el-row>
  <br><br>

  <el-row :gutter="10">
    <el-col :span="12" style="border: 1px solid red" >
      <el-row :gutter="10">
        <el-col :span="15" style="border: 1px solid black">3</el-col>
        <el-col :span="9" style="border: 1px black">4</el-col>
      </el-row>
    </el-col>

    <el-col :span="12" style="border: 1px solid blue">2</el-col>
  </el-row>

</template>

<script setup>

</script>

<style scoped>

</style>